package postpic.server.photo;

import java.util.List;

import postpic.domain.Comment;
import postpic.domain.Photo;

public class PhotoAction {
	
	private PhotoModel photoModel;
	
	public PhotoAction() {
		photoModel = new PhotoModel();
	}
	
	public Photo getPhoto(final Integer photoId) {
		return photoModel.getPhoto(photoId);
	}
	
	public List<Comment> getComments(final Integer photoId) {
		return photoModel.getComments(photoId);
	}
	
	public List<Photo> getRecentPhotos(final Integer userId) {
		return photoModel.getRecentPhotos(userId);
	}
	
	public boolean addPhoto(final Photo photo) {
		return photoModel.addPhoto(photo);
	}

}
